﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Maintenance.Controls.CeremonyPropertiesControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Grid Margin="5,5,5,5" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Label Grid.Row="0" Grid.Column="0" Content="Tidigast datum för preliminärbokning stadshuset (dagar):" />
        <Label Grid.Row="1" Grid.Column="0" Content="Tidigast datum för preliminärbokning annan plats (dagar): " />
        <Label Grid.Row="2" Grid.Column="0" Content="Påminnelse HP inkommit för bokning i stadshuset (dagar):" />
        <Label Grid.Row="3" Grid.Column="0" Content="Påminnelse HP inkommit för bokning annan plats(dagar):" />
        <Label Grid.Row="4" Grid.Column="0" Content="Avbokning stadshuset HP ej inkommit (dagar):" />
        <Label Grid.Row="5" Grid.Column="0" Content="Avbokning annan plats HP ej inkommit (dagar):" />
        <Label Grid.Row="6" Grid.Column="0" Content="Påminnelse om tjänstgöring i stadshuset (dagar):" />
        <Label Grid.Row="7" Grid.Column="0" Content="Påminnelse om handlingar för individuell ceremoni:" />
        <Label Grid.Row="8" Grid.Column="0" Content="HP giltighetstid (månader):" />
        <Label Grid.Row="9" Grid.Column="0" Content="Ordinarie bokning senast i webben (dagar):" />
        <Label Grid.Row="10" Grid.Column="0" Content="Individuell bokning senast i webben (dagar):" />

        <TextBox Grid.Row="0" Grid.Column="1" x:Name="TextBoxOrdinaryPreliminaryBookingEarliestDays" Width="35" MaxLength="3"
                 Text="{Binding OrdinaryPreliminaryBookingEarliestDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="1" Grid.Column="1"  x:Name="TextBoxIndividualPreliminaryBookingEarliestDays" Width="35" MaxLength="3"
                 Text="{Binding IndividualPreliminaryBookingEarliestDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="2" Grid.Column="1"  x:Name="TextBoxOrdinaryImpedimentDocReminderAtDays" Width="35" MaxLength="3"
                 Text="{Binding OrdinaryImpedimentDocReminderAtDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="3" Grid.Column="1"  x:Name="TextBoxIndividualImpedimentDocReminderAtDays" Width="35" MaxLength="3"
                 Text="{Binding IndividualImpedimentDocReminderAtDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="4" Grid.Column="1"  x:Name="TextBoxOrdinaryImpedimentDocRemoveBookingAtDays" Width="35" MaxLength="3"
                 Text="{Binding OrdinaryImpedimentDocRemoveBookingAtDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="5" Grid.Column="1"  x:Name="TextBoxIndividualImpedimentDocRemoveBookingAtDays" Width="35" MaxLength="3"
                 Text="{Binding IndividualImpedimentDocRemoveBookingAtDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="6" Grid.Column="1"  x:Name="TextBoxReminderOfServiceOrdinaryBookingDays" Width="35" MaxLength="3"
                 Text="{Binding ReminderOfServiceOrdinaryBookingDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="7" Grid.Column="1"  x:Name="TextBoxReminderOfDocumentsIndividualBookingDays" Width="35" MaxLength="3"
                 Text="{Binding ReminderOfDocumentsIndividualBookingDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="8" Grid.Column="1"  x:Name="TextBoxImpedimentDocValidMonths" Width="35" MaxLength="3"
                 Text="{Binding ImpedimentDocValidMonths, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="9" Grid.Column="1"  x:Name="TextBoxApplicationChangeDateIndividualBookingDays" Width="35" MaxLength="3"
                 Text="{Binding ApplicationChangeDateIndividualBookingDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />
        <TextBox Grid.Row="10" Grid.Column="1"  x:Name="TextBoxApplicationChangeDateOrdinaryBookingDays" Width="35" MaxLength="3"
                 Text="{Binding ApplicationChangeDateOrdinaryBookingDays, Mode=TwoWay, UpdateSourceTrigger=Explicit}" />

        <StackPanel Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
            <Button x:Name="CancelButton" Content="Ångra" Click="CancelButton_Click" IsEnabled="False" Margin="0,0,10,0" />
            <Button x:Name="SaveButton" Content="Spara" Click="SaveButton_Click" Command="{Binding SaveCommand}" IsEnabled="False" />
        </StackPanel>

    </Grid>
    
</UserControl>
